﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UCS.ArtificialInteligence.AI;

namespace UCS.ArtificialInteligence.NumbersProblem.Model
{
    public class NumbersProblem : IProblem
    {
        public NumbersProblem(NumbersBoard initialBoard)
        {
            _initialBoard = initialBoard;
        }

        private NumbersBoard _initialBoard;
        public IProblemState InitialState
        {
            get { return _initialBoard; }
        }

        public bool IsFinalState(IProblemState state)
        {
            return (state as NumbersBoard).IsCorrect();
        }
    }
}
